package com.yihong.common.util;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @ClassName PageResult
 * @Description 分页结果
 * @Author 孟志浩
 * @Date 2019/3/28 13:45
 **/
@NoArgsConstructor
@Accessors(chain = true)
@Getter
@Setter
public class PageResult<T> {

    private long total;
    private List<T> list;

    public PageResult(long total, List<T> list) {
        this.total = total;
        this.list = list;
    }
}
